<!DOCTYPE html>
<html style="font-size:75px;">
<head>
  <title>余不二 | 不像程序员的程序员</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <!--<meta name="viewport"-->
  <!--content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>-->
  <link rel="icon" href="static/favicon.ico" type="image/x-icon">
  <link rel="shortcut icon" href="static/favicon.ico" type="image/x-icon">
</head>
<body>
<div id="app">

</div>
<script>
  /**
   * @return {boolean}
   */
  function isPC() {
    let userAgentInfo = navigator.userAgent;
    let Agents = ["Android", "iPhone",
      "SymbianOS", "Windows Phone",
      "iPad", "iPod"];
    let flag = true;
    for (let v = 0; v < Agents.length; v++) {
      if (userAgentInfo.indexOf(Agents[v]) > 0) {
        flag = false;
        break;
      }
    }
    return flag;
  }

  if (!isPC()) {
    (function (doc, win) {
      let docEl = doc.documentElement,
        resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
        resize = function () {
          let clientWidth = docEl.clientWidth;
          if (!clientWidth) return;
          docEl.style.fontSize = (clientWidth / 10) + 'px';
        };
      if (!doc.addEventListener) return;
      win.addEventListener(resizeEvt, resize, false);
      doc.addEventListener('DOMContentLoaded', resize, false);
    })(document, window);
  }
</script>
<!-- built files will be auto injected -->
</body>
</html>
